/* ================================
   绿波路段页面样式
   ================================ */

/* 背景渐变效果 */
.bg-dark-gradient {
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 主容器 */
.sections-container {
    padding: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
    color: white;
    animation: fadeInUp 0.8s ease-out;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   页面标题区域
   ================================ */

.sections-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sections-title {
    flex: 1;
}

.sections-title i {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-right: var(--space-md);
    vertical-align: middle;
}

.sections-title h1 {
    display: inline-block;
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
    vertical-align: middle;
}

.sections-title .subtitle {
    display: block;
    font-size: var(--font-lg);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-sm);
    margin-left: 4.2rem;
}

/* 统计卡片区域 */
.sections-stats {
    display: flex;
    gap: var(--space-lg);
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 160px;
    transition: all var(--duration-normal) ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(76, 175, 80, 0.2);
    color: var(--primary-green);
    font-size: var(--font-xl);
}

.stat-icon.success {
    background: rgba(76, 175, 80, 0.2);
    color: var(--text-success);
}

.stat-icon.warning {
    background: rgba(255, 152, 0, 0.2);
    color: var(--text-warning);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: var(--font-xl);
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.stat-label {
    font-size: var(--font-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-xs);
}

/* ================================
   搜索筛选区域
   ================================ */

.filter-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.filter-label i {
    color: var(--accent-cyan);
    width: 16px;
}

.filter-input,
.filter-select {
    background: rgba(29, 43, 64, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    color: white;
    font-size: var(--font-sm);
    transition: all var(--duration-normal) ease;
    width: 100%;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.filter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
    margin-top: var(--space-md);
    grid-column: 1 / -1;
}

/* ================================
   路段列表区域
   ================================ */

.sections-list {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-xl);
    font-weight: 600;
    color: white;
}

.section-title i {
    color: var(--accent-cyan);
}

.section-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-btn {
    background: transparent;
    border: none;
    padding: var(--space-sm) var(--space-md);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all var(--duration-normal) ease;
    font-size: var(--font-sm);
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.view-btn.active {
    background: var(--primary-green);
    color: white;
}

/* ================================
   路段卡片网格
   ================================ */

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.section-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-normal) ease;
    position: relative;
}

.section-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-neon);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-sm);
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-status.status-running {
    background: rgba(76, 175, 80, 0.2);
    color: var(--text-success);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.section-status.status-paused {
    background: rgba(255, 152, 0, 0.2);
    color: var(--text-warning);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.section-status.status-testing {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.section-status.status-maintaining {
    background: rgba(158, 158, 158, 0.2);
    color: #bdbdbd;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.card-actions {
    display: flex;
    gap: var(--space-xs);
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: var(--space-xs);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all var(--duration-normal) ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.card-content {
    padding: var(--space-lg);
}

.section-name {
    font-size: var(--font-lg);
    font-weight: 600;
    color: white;
    margin: 0 0 var(--space-sm) 0;
}

.section-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-sm);
    line-height: 1.5;
    margin-bottom: var(--space-lg);
}

.section-metrics {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    flex: 1;
}

.metric i {
    color: var(--accent-cyan);
    font-size: var(--font-lg);
}

.metric-value {
    font-size: var(--font-lg);
    font-weight: 700;
    color: white;
}

.metric-label {
    font-size: var(--font-xs);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.section-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.created-date,
.last-updated {
    font-size: var(--font-xs);
    color: rgba(255, 255, 255, 0.6);
}

.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-xs);
}

/* ================================
   分页器
   ================================ */

.pagination-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-sm);
}

.pagination-controls {
    display: flex;
    gap: var(--space-xs);
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-sm);
    cursor: pointer;
    transition: all var(--duration-normal) ease;
    min-width: 32px;
    text-align: center;
}

.pagination-btn:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.pagination-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================================
   响应式设计
   ================================ */

@media (max-width: 1200px) {
    .sections-container {
        padding: var(--space-lg);
    }

    .sections-header {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .sections-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .filter-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .sections-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .sections-container {
        padding: var(--space-md);
    }

    .sections-stats {
        flex-direction: column;
        width: 100%;
    }

    .stat-card {
        min-width: unset;
        width: 100%;
    }

    .filter-container {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section-header {
        flex-direction: column;
        gap: var(--space-md);
        align-items: stretch;
    }

    .section-actions {
        justify-content: space-between;
    }

    .sections-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .section-metrics {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .metric {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-sm);
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-sm);
    }

    .card-footer {
        flex-direction: column;
        gap: var(--space-md);
        align-items: stretch;
    }

    .pagination-section {
        flex-direction: column;
        gap: var(--space-md);
    }
} 